// samsting : this file is auto create.

#include "Rds/2014-08-15/DescribeBackupsRequest.h"

namespace aliyun { namespace Rds {

DescribeBackupsRequest::DescribeBackupsRequest() : RpcAcsRequest("Rds", "2014-08-15", "DescribeBackups") {
}

int64 DescribeBackupsRequest::GetOwnerId(void) const {
  return OwnerId_;
}
void DescribeBackupsRequest::SetOwnerId(int64 OwnerId) {
  OwnerId_ = OwnerId;
  PutQueryParameter("OwnerId", string_ValueOfInt64(OwnerId_));
}

const string& DescribeBackupsRequest::GetResourceOwnerAccount(void) const {
  return ResourceOwnerAccount_;
}
void DescribeBackupsRequest::SetResourceOwnerAccount(const string& ResourceOwnerAccount) {
  ResourceOwnerAccount_ = ResourceOwnerAccount;
  PutQueryParameter("ResourceOwnerAccount", ResourceOwnerAccount_);
}

int64 DescribeBackupsRequest::GetResourceOwnerId(void) const {
  return ResourceOwnerId_;
}
void DescribeBackupsRequest::SetResourceOwnerId(int64 ResourceOwnerId) {
  ResourceOwnerId_ = ResourceOwnerId;
  PutQueryParameter("ResourceOwnerId", string_ValueOfInt64(ResourceOwnerId_));
}

const string& DescribeBackupsRequest::GetDBInstanceId(void) const {
  return DBInstanceId_;
}
void DescribeBackupsRequest::SetDBInstanceId(const string& DBInstanceId) {
  DBInstanceId_ = DBInstanceId;
  PutQueryParameter("DBInstanceId", DBInstanceId_);
}

const string& DescribeBackupsRequest::GetBackupId(void) const {
  return BackupId_;
}
void DescribeBackupsRequest::SetBackupId(const string& BackupId) {
  BackupId_ = BackupId;
  PutQueryParameter("BackupId", BackupId_);
}

const string& DescribeBackupsRequest::GetBackupLocation(void) const {
  return BackupLocation_;
}
void DescribeBackupsRequest::SetBackupLocation(const string& BackupLocation) {
  BackupLocation_ = BackupLocation;
  PutQueryParameter("BackupLocation", BackupLocation_);
}

const string& DescribeBackupsRequest::GetBackupStatus(void) const {
  return BackupStatus_;
}
void DescribeBackupsRequest::SetBackupStatus(const string& BackupStatus) {
  BackupStatus_ = BackupStatus;
  PutQueryParameter("BackupStatus", BackupStatus_);
}

const string& DescribeBackupsRequest::GetBackupMode(void) const {
  return BackupMode_;
}
void DescribeBackupsRequest::SetBackupMode(const string& BackupMode) {
  BackupMode_ = BackupMode;
  PutQueryParameter("BackupMode", BackupMode_);
}

const string& DescribeBackupsRequest::GetStartTime(void) const {
  return StartTime_;
}
void DescribeBackupsRequest::SetStartTime(const string& StartTime) {
  StartTime_ = StartTime;
  PutQueryParameter("StartTime", StartTime_);
}

const string& DescribeBackupsRequest::GetEndTime(void) const {
  return EndTime_;
}
void DescribeBackupsRequest::SetEndTime(const string& EndTime) {
  EndTime_ = EndTime;
  PutQueryParameter("EndTime", EndTime_);
}

int DescribeBackupsRequest::GetPageSize(void) const {
  return PageSize_;
}
bool DescribeBackupsRequest::SetPageSize(int PageSize) {
  if(PageSize < 30) {
    return false;
  }
  if(PageSize > 100) {
    return false;
  }
  PageSize_ = PageSize;
  PutQueryParameter("PageSize", string_ValueOfInt(PageSize_));
  return true;
}

int DescribeBackupsRequest::GetPageNumber(void) const {
  return PageNumber_;
}
bool DescribeBackupsRequest::SetPageNumber(int PageNumber) {
  if(PageNumber < 1) {
    return false;
  }
  if(PageNumber > 2147483647) {
    return false;
  }
  PageNumber_ = PageNumber;
  PutQueryParameter("PageNumber", string_ValueOfInt(PageNumber_));
  return true;
}

const string& DescribeBackupsRequest::GetOwnerAccount(void) const {
  return OwnerAccount_;
}
void DescribeBackupsRequest::SetOwnerAccount(const string& OwnerAccount) {
  OwnerAccount_ = OwnerAccount;
  PutQueryParameter("OwnerAccount", OwnerAccount_);
}


} } // namespace aliyun { namespace Rds {

// end of file 
